html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: url('https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AA1wSIqt.img?w=636&h=527&m=6&x=262&y=223&s=145&d=145') no-repeat center center fixed;
  background-size: 50% auto; 
  background-color: #1a1a1a;
}

.tetris-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.8);
}

.tetris {
  position: relative;
  border: 3px solid #333;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  width: 225vh;
  height: 90vh;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.tetris-board {
  display: grid;
  grid-template-columns: repeat(50, 1fr);
  gap: 1px;
  width: 100%;
  height: 100%;
  background-color: rgba(40, 40, 40, 0.8);
  padding: 0;
  border-radius: 8px;
}

.tetris-cell {
  aspect-ratio: 1;
  border: 1px solid #333;
  border-radius: 2px;
  width: 100%;
  height: 100%;
}

.game-info {
  position: fixed;
  top: 0;
  left: 0;
  background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(45, 45, 45, 0.9));
  padding: 15px;
  border-radius: 15px;
  color: white;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
  cursor: move;
  user-select: none;
  min-width: 150px;
  touch-action: none;
  transform: translate(20px, 20px);
  transition: box-shadow 0.3s ease;
  backdrop-filter: blur(5px);
}

.score {
  font-size: 1.2em;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 10px;
}

.speed-control {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px;
  border-radius: 8px;
  margin: 5px 0;
}

.speed-control label {
  display: block;
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #00ffff;
}

.speed-control input[type="range"] {
  width: 100%;
  height: 20px;
  -webkit-appearance: none;
  background: rgba(0, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
}

.speed-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 25px;
  height: 25px;
  background: #00ffff;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.game-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-controls button {
  width: 100%;
  padding: 8px 15px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: bold;
}

.pause-btn {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.restart-btn {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.game-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-controls button:active {
  transform: translateY(1px);
}

.pause-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: #00ffff;
  padding: 40px 80px;
  border-radius: 15px;
  font-size: 2.5em;
  z-index: 100;
  box-shadow: 0 0 50px rgba(0, 255, 255, 0.2);
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 2px solid rgba(0, 255, 255, 0.3);
}

.game-over {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.95);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  z-index: 100;
  border: 2px solid rgba(255, 0, 0, 0.3);
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
}

.game-over h2 {
  margin-bottom: 30px;
  font-size: 2.5em;
  color: #ff0000;
  text-transform: uppercase;
}

/* 响应式调整 */
@media (max-height: 800px) {
  .game-info {
    padding: 10px;
    gap: 5px;
  }
  
  .game-controls button {
    padding: 6px 12px;
    font-size: 0.9em;
  }
}

/* 添加响应式设计 */
@media (max-width: 1200px) {
  .tetris-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .tetris {
    width: 90vw;
    height: 70vh;
  }
  
  .game-info {
    width: 90vw;
  }
} 